package com.zhou.basics.model.business;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * ad实体类
 * @author Administrator
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="tb_ad")
public class Ad implements Serializable{

	@Id
	private Integer id;//ID

	private String name;//广告名称

	private String position;//广告位置

	@Column(name = "start_time")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date startTime;//开始时间

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Column(name = "end_time")
	private Date endTime;//到期时间

	private String status;//状态

	private String image;//图片地址

	private String url;//URL

	private String remarks;//备注
	
}
